<?php


namespace app\admin\controller;


use app\model\ArticleCate;
use app\service\ArticleCateService;
use think\Request;

class ArticleCateController extends AController {

    protected function initialize()
    {

        $this->model = new ArticleCate();
        $this->cascades = [
            ['rel_id'=> 'cate_id', 'rel_model'=>'Article'],
        ];

        $this->isPage = false;

        parent::initialize();
    }


    public function options(){
        $ser = new ArticleCateService();
        return jsonSuccess([
            'options' => $ser->options()
        ]);
    }


}
